<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String basePath = request.getScheme() + "://" +
            request.getServerName() + ":" + request.getServerPort() +
            request.getContextPath() + "/";
%>

<html>
<head>
    <title></title>
    <base href="<%=basePath%>"/>
</head>
<body>

<form action="forward.do">
    <button type="text" value="">直接跳转请求转发界面</button>
</form>
<form action="redirect.do">
    <button type="text" value="">直接跳转请求重定向界面</button>
</form>
<form action="forward.do" method="post">
    姓名：<input type="text" name="name">
    年龄：<input type="text" name="age">
    <input type="submit" value="提交信息，转发传数据">
</form>
<form action="redirect.do" method="post">
    姓名：<input type="text" name="name">
    年龄：<input type="text" name="age">
    <input type="submit" value="提交信息，重定向传数据">
</form>

</body>
</html>
